/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cadi.levelsManager;

import com.cadi.aux.Levels;
import com.cadi.games.IdentifyBill;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JLayeredPane;

/**
 *
 * @author Vercetti
 */
public class LevelsIdentifyBill extends Levels {
    private JLabel background;
    public LevelsIdentifyBill(){
        
        voice = java.applet.Applet.newAudioClip(getClass().getResource("/resources/levelIdentify.wav"));
        voice.play();
        easy.setText("Caras");
        easy.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                IdentifyBill levelOne = new IdentifyBill(true);
                window.setVisible(false);
            }
        });
        intermediate.setText("Numeros");
        intermediate.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                IdentifyBill levelOne = new IdentifyBill(false);
                levelOne.setLevelOneNumber();
                window.setVisible(false);
            }
        });
        difficult.setText("Colores");
        difficult.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                IdentifyBill levelOne = new IdentifyBill(false);
                levelOne.setLevelOneColor();
                window.setVisible(false);
            }
        });
        extraLevel.setVisible(false);
        background = new JLabel(new ImageIcon(getClass().getResource("/resources/fondo6.png")));
        background.setBounds(0, 0, 1280,800);
        container.add(background, JLayeredPane.PALETTE_LAYER);
        window.setVisible(true);
    }
           
}
